package com.tdf.webblog.dao;

import com.tdf.webblog.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDAO {

    User findByUsername(@Param("username") String username);

    List<User> findAll();

    void saveUser(@Param("user") User user);

    //User getByUsernameAndPassword(String username,String password);
}
